# 导包
from common.dbutil import DBUtil

# 测试工具类
# sql = "select version();"
# sql = "select * from t_book;"
# sql = "insert in to t_book(id,title,pub_data) values(666,'API自动化666',1986-01-01)"
# sql= "update t_book set `read` = `read`+1 where id = 666;"
sql = "delete from t_book where id = 666; "
print(DBUtil().exe_sql(sql))